import Vue from 'Vue'
import Vuex from 'Vuex'

Vue.use(Vuex);
const state = {
    count: 10
}
const mutations = {
    add(state) {
        state.count++;
    },
    reduce(state) {
        state.count--;
    }
}

export default new Vuex.Store({
    state,
    mutations
})